package com.transcendence.core.global;

/**
 * @author joephone
 * @date 2023/3/24
 * @desc 打包发版核心控制
 */
public class CORE {

    public static String S01Token = "";
    //是否热更  m57联调不开  上线开
    public static boolean HOT_MODULE_REPLACEMENT = false;

    public static ENVIRONMENT ENVIRONMENT_CURRENT = ENVIRONMENT.PRODUCTION;

    public static CarControlStatusEnum CAR_CONTROL_STATE_CURRENT = CarControlStatusEnum.UNLOGIN;
    /**
     * 是否生产打印日志
     */
    public static boolean PRINT_LOG = true;

    public static final String BUGLY_ID = "0a4b9143aa";
    public static final String BUGLY_KEY = "b482ce9c-e9fc-446d-85bc-aa9c550979b2";

    public enum ENVIRONMENT {
        TEST_UAT,          //uat
        DEV_PERF,          //perf
        PRODUCTION,        //pro
    }

    public static String BASE_URL(){
        switch (ENVIRONMENT_CURRENT) {
            case PRODUCTION:
                return "https://app-m.dfpv.com.cn";
            case TEST_UAT:
                return "https://m-dfpv-app-test.dfmc.com.cn";
            case DEV_PERF:
                return "https://m-dfpv-app-dev.dfmc.com.cn";
            default:
                return "https://app-m.dfpv.com.cn";
        }
    }

    public static String SOA_URL(){
        switch (ENVIRONMENT_CURRENT) {
            case PRODUCTION:
                return "https://app-m.dfpv.com.cn/gateway/micro/app/api/";
            case TEST_UAT:
                return "https://m-dfpv-app-test.dfmc.com.cn/gateway/micro/app/api/";
            case DEV_PERF:
                return "https://m-dfpv-app-dev.dfmc.com.cn/gateway/micro/app/api/";
            default:
                return "https://app-m.dfpv.com.cn/gateway/micro/app/api/";
        }
    }


    public static String ANALYSIS_DATA_RECEIVE(){
        switch (ENVIRONMENT_CURRENT) {
            case PRODUCTION:
                return "https://app-ubt.dfpv.com.cn/sensors/sa?project=lcb_fengshen";
            case TEST_UAT:
                return "https://ubt-dfpv-app-test.dfmc.com.cn/sensors/sa?project=lcb_fengshen_test";
            case DEV_PERF:
                return "https://ubt-dfpv-app-dev.dfmc.com.cn/sensors/sa?project=lcb_fengshen_test";
            default:
                return "https://app-ubt.dfpv.com.cn/sensors/sa?project=lcb_fengshen";
        }
    }

}
